package skeleton;
import java.rmi.RemoteException;
public class  TestBDD {

	public static void remplirBDD(Operations od){
		try {
			od.creerArticle('D', "Scarface", true, "DePalma", 19.99, 4);
			od.creerArticle('L', "Le rouge et le noir", true, "Steindhal", 11.99, 3);
			od.creerArticle('R', "The dark knight rises", true, "Nolan", 30.99, 11);
			od.creerArticle('B', "Picsou", true, "DonRosa", 5.55, 2);
			od.creerArticle('D', "Bilbo The Hobbit - screener", true, "Peter Jackson", 50.01, 1);
			od.creerArticle('R', "L'aventure magique de Gustaf Wolowitz", true, "Gonzo", 19.99, 4);
			od.creerArticle('L', "Cellular", true, "Stephen King", 13.99, 4);
			od.creerArticle('D', "Le parrain", true, "Coppola", 19.99, 4);
			od.creerArticle('D', "Le parrain 2", true, "Coppola", 19.99, 4);
			od.creerArticle('B', "Mickey", true, "Carls Backs", 19.99, 4);
			od.creerArticle('L', "Bel ami", true, "Maupassant", 19.99, 4);
			od.sInscrire("Gonzo", "Gonzo");
			od.sInscrire("Mel", "Mel");
			UtilisateurImpl admin = new UtilisateurImpl("admin","mdp",true,false);
			od.getListeUtilisateur().add(admin);
			
			
		} catch (RemoteException e) {
			e.printStackTrace();
		}
	}
}